package com.shensi.appCollect.dao;

import com.shensi.appCollect.pojo.FleetCard;
import com.shensi.appCollect.pojo.FleetCardRechargeRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface FleetCardMapper {

    /**
     * 查询车队卡
     *
     * @param cardNumber 车队卡cardNumber
     * @return 车队卡
     */
    FleetCard selectFleetCardByCardNumber(String cardNumber);

    /**
     * 修改车队卡
     *
     * @param fleetCard 车队卡
     * @return 结果
     */
    int updateFleetCard(FleetCard fleetCard);

    List<FleetCard> selectFleetCardByKeyword(@Param("enterpriseId") Long enterpriseId, @Param("keyword") String keyword);

    FleetCard selectById(Long fleetCardId);

    List<FleetCard> query(FleetCard fleetCardQuery);

    FleetCard getOne(FleetCard fleetCard);

    FleetCardRechargeRecord selectRechargeRecordByRecordId(@Param("id") Long id);
}
